package uk.ac.cam.cl.projectcharlie2010.clients.desktop.controller;

import java.io.File;

import uk.ac.cam.cl.projectcharlie2010.Charlies;

import ch.nostromo.lib.controller.NosControllerSettings;
import ch.nostromo.lib.controller.NosSettingsException;

public class DesktopSettings extends NosControllerSettings {
  
  private static final long serialVersionUID = 1L;
  
//  public boolean DEFAULT_GAME_WHITE_ENGINE = false;

  public enum PlayerType {
	  ENGINE, HUMAN, PHYSICAL;
  }
  
  public PlayerType DEFAULT_PLAYERTYPE_FOR_WHITE = PlayerType.PHYSICAL;
//  public PlayerType DEFAULT_PLAYERTYPE_FOR_WHITE = PlayerType.HUMAN;
  
  public String DEFAULT_GAME_WHITE_ENGINE_DOC = "Is white default an engine.";
  
//  public boolean DEFAULT_GAME_BLACK_ENGINE = true;
  
  public PlayerType DEFAULT_PLAYERTYPE_FOR_BLACK = PlayerType.ENGINE;

  public String DEFAULT_GAME_BLACK_ENGINE_DOC = "Is black default an engine.";
    
  public String DEFAULT_ENGINE_NAME = "ch.nostromo.tiffanys.engines.tiffanys.TiffanysEngine";

  public String DEFAULT_ENGINE_NAME_DOC = "Default engine name";

  public String DEFAULT_ENGINE_SETTINGS = "engine-settings-" + Charlies.VERSION + ".xml";

  public String DEFAULT_ENGINE_SETTINGS_DOC = "Engine Settings File";
  
  //CHANGED: "tiffanys" -> "charlies"
  public DesktopSettings()  {
    super("charlies", "desktop.log");
  }

  //CHANGED: "tiffanys" -> "charlies"
  public DesktopSettings(File fileToRead) throws NosSettingsException {
    super("charlies", "desktop.log");
    this.readSettingsFromXml(fileToRead);
  }
  
}
